From 815077ee40b2190def5ecef3df015c01e5207b34 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Fri, 14 Jul 2006 11:48:48 +0100 Subject: [PATCH] [TPM] Discard a future response packet after a timeout has occurred instead of removing the request right away. Signed-off-by: Stefan Berger --- linux-2.6-xen-sparse/drivers/xen/tpmback/tpmback.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-2.6-xen-sparse/drivers/xen/tpmback/tpmback.c b/linux-2.6-xen-sparse/drivers/xen/tpmback/tpmback.c index 3e2d5087a7..f792a4cf35 100644 --- a/linux-2.6-xen-sparse/drivers/xen/tpmback/tpmback.c +++ b/linux-2.6-xen-sparse/drivers/xen/tpmback/tpmback.c @@ -852,11 +852,11 @@ static void processing_timeout(unsigned long ptr) */ if (pak == packet_find_packet(&dataex.pending_pak, pak) || pak == packet_find_packet(&dataex.current_pak, pak)) { - list_del(&pak->next); if ((pak->flags & PACKET_FLAG_DISCARD_RESPONSE) == 0) { tpm_send_fail_message(pak, pak->req_tag); } - packet_free(pak); + /* discard future responses */ + pak->flags |= PACKET_FLAG_DISCARD_RESPONSE; } write_unlock_irqrestore(&dataex.pak_lock, flags); -- 2.30.2